<template>
	<view class="kk">
		<view class="" v-if="lists.length>0">
			<view class="work_list" v-for="(item,index) in lists">
				<view class="imgs">
					<img src="https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0" alt="">
				</view>
				<view class="poerty">
					<p class="users">{{item.user_name}}</p>
					<p class="w">{{item.content}}</p>
				</view>
			
			</view>
		</view>
		
		<view class="ss" v-else>
			<span>还没有人留下足迹呢</span>
		</view>
			<img class="xinjian" src="../../../static/xinjian.png" alt="" @click="gowork"/>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				lists:[]
			}
		},
		onLoad() {
			this.list()
		},
		methods: {
			list(){
				this.$api.user_work({content:"",status:1}).then(res=>{
					this.lists=res.rows;
				})
			},
			gowork(){
				uni.navigateTo({
					url:"/pages/work/index"
				})
			},
		}
	}
</script>

<style lang="scss">
	.kk{
		.ss{
			position: fixed;
						bottom: 80%;
					
			left: 50%;
			transform: translate(-50%, -50%);
		}
		.work_list{
			display: flex;
			align-items: center;
			width: 100%;
			padding-bottom: 20px;
			margin-top: 20px;
			border-bottom: 1px solid #f5f5f5;
			.imgs{
				img{
					width: 48px;
					height: 48px;
					padding-left: 10px;
				}
			}
			.poerty{
				padding-left: 20px;
				.users{
					color: #596687;
					font-size: 35rpx;
				
				}
				.w{
					
				}
			}
			
			}
	}
	.xinjian{
		position: fixed;
		bottom: 0;
		width: 54px;
		height: 54px;
	 
	  left: 50%;
	  transform: translate(-50%, -50%);
		
		
	}

</style>
